package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 表对象 d_table
 *
 * @author fulan
 * @date 2020-09-17
 */
public class DTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目ID */
    private String projectId;

    /** 表code */
    private String tableCode;

    /** 表名称 */
    private String tableName;

    /** 字段数量 */
    private long columnNum;

    /** 所在目录ID */
    private String contentId;

    /** 排序 */
    private Long dSort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;



    /** 创建人姓名 */
    private String createName;



    /** 更新人姓名 */
    private String updateName;

    /** X坐标 */
    private String tableX;

    /** Y坐标 */
    private String tableY;

    private String modelX;
    private String modelY;
    private String modelWidth;
    private String modelHeight;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProjectId(String projectId)
    {
        this.projectId = projectId;
    }

    public String getProjectId()
    {
        return projectId;
    }
    public void setTableCode(String tableCode)
    {
        this.tableCode = tableCode;
    }

    public String getTableCode()
    {
        return tableCode;
    }
    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableName()
    {
        return tableName;
    }
    public void setColumnNum(long columnNum)
    {
        this.columnNum = columnNum;
    }

    public long getColumnNum()
    {
        return columnNum;
    }
    public void setContentId(String contentId)
    {
        this.contentId = contentId;
    }

    public String getContentId()
    {
        return contentId;
    }
    public void setdSort(Long dSort)
    {
        this.dSort = dSort;
    }

    public Long getdSort()
    {
        return dSort;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setCreateName(String createName)

    {

        this.createName = createName;

    }



    public String getCreateName()

    {

        return createName;

    }

    public void setUpdateName(String updateName)

    {

        this.updateName = updateName;

    }



    public String getUpdateName()

    {

        return updateName;

    }



    @Override

    public String toString() {

        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

                .append("id", getId())

                .append("projectId", getProjectId())

                .append("tableCode", getTableCode())

                .append("tableName", getTableName())

                .append("columnNum", getColumnNum())

                .append("contentId", getContentId())

                .append("dSort", getdSort())

                .append("createBy", getCreateBy())

                .append("createDate", getCreateDate())

                .append("updateBy", getUpdateBy())

                .append("updateDate", getUpdateDate())

                .append("delFlag", getDelFlag())

                .append("createName", getCreateName())

                .append("updateName", getUpdateName())

                .toString();

    }

    public String getTableX() {
        return tableX;
    }

    public void setTableX(String tableX) {
        this.tableX = tableX;
    }

    public String getTableY() {
        return tableY;
    }

    public void setTableY(String tableY) {
        this.tableY = tableY;
    }

    public String getModelX() {
        return modelX;
    }

    public void setModelX(String modelX) {
        this.modelX = modelX;
    }

    public String getModelY() {
        return modelY;
    }

    public void setModelY(String modelY) {
        this.modelY = modelY;
    }

    public String getModelWidth() {
        return modelWidth;
    }

    public void setModelWidth(String modelWidth) {
        this.modelWidth = modelWidth;
    }

    public String getModelHeight() {
        return modelHeight;
    }

    public void setModelHeight(String modelHeight) {
        this.modelHeight = modelHeight;
    }
}
